package satellite_service_enum

// 卫星定位服务-工程部接单状态
type satelliteEngineeringStatus int

var SatelliteEngineeringStatus satelliteEngineeringStatus

// 未接单
func (c *satelliteEngineeringStatus) MissedOrder() int {
	return 1
}

// 已接单
func (c *satelliteEngineeringStatus) ReceivedOrder() int {
	return 2
}

func (c *satelliteEngineeringStatus) ToText(value int) string {
	switch value {

	case 1:
		return "未接单"

	case 2:
		return "已接单"

	}
	return ""
}

func (c *satelliteEngineeringStatus) ToValue(text string) int {
	switch text {

	case "未接单":
		return 1

	case "已接单":
		return 2

	}
	return 0
}
